package com.lening.iot.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.lening.iot.dto.AccontrolDTO;
import com.lening.iot.dto.HamangerDTO;
import com.lening.iot.po.HamangerPO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @ToDo:
 * @Author：李忠达
 * @date: 2024/6/4 10:52
 */
@Mapper
public interface HamangerDAO extends BaseMapper<HamangerPO> {


    Page<HamangerDTO> getAllHam(Page<HamangerDTO> hamangerDTO);

    HamangerPO getById(Long id);

    List<HamangerDTO> getAll(@Param("communityName")String communityname);
}
